#ifndef __GLOBAL__H__
#define __GLOBAL__H__

#define TERRAIN_DIR_BASE_NAME "terrain_tiles"
#define TEXTURE_DIR_BASE_NAME "texture_tiles"

#define CHAIN_SIZE 9
#define TRAJECTORY_DIR_BASE_NAME "trajectory_tiles"

#define ROUND(x) ((x)>=0?(int)((x)+0.5):(int)((x)-0.5))
#define SWAPVEC2I(a, b, xy) {int c = a[xy]; a[xy] = b[xy]; b[xy] = c;}

#define INTERPOLATED_TERRAIN_TILE_SIZE 32.0

#endif